package com.zhengshang.api.mapper;

import com.zhengshang.api.domain.AppNavigate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * app首页导航Mapper接口
 *
 * @author zhengshang
 * @date 2022-04-07
 */
public interface AppNavigateMapper {
    /**
     * 查询app首页导航
     *
     * @param navigateId app首页导航ID
     * @return app首页导航
     */
    public AppNavigate selectAppNavigateById(Long navigateId);

    /**
     * 查询app首页导航列表
     *
     * @param appNavigate app首页导航
     * @return app首页导航集合
     */
    public List<AppNavigate> selectAppNavigateList(AppNavigate appNavigate);

    /**
     * 查询AAPP端导航列表（不分页）
     *
     * @param appNavigate APP端导航
     * @return APP端导航集合
     */
    public List<AppNavigate> queryAppNavigateList(AppNavigate appNavigate);

    /**
     * 新增app首页导航
     *
     * @param appNavigate app首页导航
     * @return 结果
     */
    public int insertAppNavigate(AppNavigate appNavigate);

    /**
     * 修改app首页导航
     *
     * @param appNavigate app首页导航
     * @return 结果
     */
    public int updateAppNavigate(AppNavigate appNavigate);

    /**
     * 删除app首页导航
     *
     * @param navigateId app首页导航ID
     * @return 结果
     */
    public int deleteAppNavigateById(Long navigateId);

    /**
     * 批量删除app首页导航
     *
     * @param navigateIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteAppNavigateByIds(Long[] navigateIds);

    /**
     * 根据标识进行查询
     *
     * @param navigateCode
     * @return
     */
    public AppNavigate findAppNavigateByCode(String navigateCode);

    /**
     * 根据标多识进行查询
     *
     * @param navigateCodes
     * @return
     */
    public List<AppNavigate> selectAppNavigateByCodes(@Param("navigateCodes") String[] navigateCodes);
}
